﻿using System;
using System.Data;
using System.Data.SqlClient;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ProjectSem40701
{
    public partial class AwardDetail : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        private void Fill_data()
        {
            try
            {
                int AwardID = Convert.ToInt32(Request.QueryString["AwardID"].ToString());

                Admin.AdminXSD.AwardTableAdapters.tbl_AwardTableAdapter dp =
                    new Admin.AdminXSD.AwardTableAdapters.tbl_AwardTableAdapter();
                DataTable dttbl = dp.Get_tbl_Award_Select_All_By_AwardID(AwardID);
            }
            catch
            {
                //error system
            }
        }
        protected void lblContent_DataBinding(object sender, EventArgs e)
        {
            Label lblContent = (Label)sender;
            lblContent.Text = Server.HtmlDecode(lblContent.Text);
        }

        protected void imgAward_DataBinding(object sender, EventArgs e)
        {
            Image imgAward = (Image)sender;
            if (imgAward.ImageUrl.ToLower().EndsWith("news1-1.jpg"))
            {
                imgAward.Visible = true;
            }
        }
    }
}

